const base_2 = import.meta.env.DEV ? 'http://localhost:3019/shenwenyi' : ''
const base_1 = import.meta.env.DEV ? 'http://localhost:3019/zhoupan' : ''
const base = import.meta.env.DEV ? 'http://localhost:3019/chenjialin' : ''

import request from 'src/utils/request'

// 商城管理  标签列表
export function listTag(data) {
    return request({
        url: '/mall/proTag/list',
        // url: base+ '/mall/proTag/list',
        method: 'post',
        data
    })
     return Promise.resolve({
        data: {
            records: [
                {tagName:'项目名称', createTime:'2022.6.1',},
                {tagName:'项目名称',createTime:'2022.7.1',}
            ],
            total: 10
        }
    })
}
// 商城管理  添加标签
export function addTag(data) {
    return request({
        url: '/mall/proTag/add',
        // url: base+'/mall/proTag/add',
        method: 'post',
        data
    })
}

// 商城管理  编辑标签
export function updateTag(data) {
    return request({
        url: '/mall/proTag/update',
        // url: base+'/mall/proTag/update',
        method: 'post',
        data
    })
}

// 商城管理  删除标签
export function delTag(data) {
    return request({
        url: '/mall/proTag/del',
        // url: base+'/mall/proTag/del',
        method: 'post',
        data
    })
}

// 商城管理  标签下移1位
export function moveDownTag(data) {
    return request({
        url: '/mall/proTag/moveDown',
        // url: base+ '/mall/proTag/moveDown',
        method: 'post',
        data
    })
}

// 商城管理  标签上移1位
export function moveUpTag(data) {
    return request({
        url: '/mall/proTag/moveUp',
        // url: base+'/mall/proTag/moveUp',
        method: 'post',
        data
    })
}